﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace UnitTests
{
    class Courses
    {
        Dictionary<int, string> Students;

        public Courses() 
        {
            this.Students = new Dictionary<int, string>();
        }

        public void AddStudent(Student newStudent) 
        {
            if (this.Students.Count >= 30) 
            {
                throw new ArgumentException("Course is full");
            }
            Students.Add(newStudent.FacNumber, newStudent.Name);
        }

        public bool RemoveStudent(Student stud)
        {
            bool result;
            result = Students.Remove(stud.FacNumber);
            return result;
        }

    }
}
